package com.face.common.jsu;

import java.sql.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;

import org.apache.naming.java.javaURLContextFactory;

public class StringToDate {
   public static Date StringToDate(String string){
	   SimpleDateFormat s  =  new  SimpleDateFormat("yyyy-MM-dd");
	   java.util.Date date = new java.util.Date();
	try {
		date = s.parse(string);
	} catch (ParseException e) {
		
	}
	   java.sql.Date sDate = new java.sql.Date(date.getTime());
	   return sDate;
   }
   
}
